package com.zh;

import com.zh.transport.HotAirBalloon;
import com.zh.transport.Motorcycle;
import com.zh.transport.Submarine;
//使用抽象加继承
public class Main {

    public static void main(String[] args) {
	// write your code here
        Person langhua = new Person("浪花哥");
        HotAirBalloon hotAirBalloon1 = new HotAirBalloon("hotAirBalloon1");
        Motorcycle motorcycle1 = new Motorcycle("motorcycle1");
        Submarine submarine1 = new Submarine("submarine1");

        langhua.driveTransport(hotAirBalloon1);
        langhua.driveTransport(motorcycle1);
        langhua.driveTransport(submarine1);
    }
}
